import request from '@/utils/request'

// 查询互动平台消息列表
export function listVitimMessage(query) {
  return request({
    url: '/secondVitim/vitimMessage/list',
    method: 'get',
    params: query
  })
}

// 查询互动平台消息详细
export function getVitimMessage(id) {
  return request({
    url: '/secondVitim/vitimMessage/' + id,
    method: 'get'
  })
}

// 新增互动平台消息
export function addVitimMessage(data) {
  return request({
    url: '/secondVitim/vitimMessage',
    method: 'post',
    data: data
  })
}

// 修改互动平台消息
export function updateVitimMessage(data) {
  return request({
    url: '/secondVitim/vitimMessage',
    method: 'put',
    data: data
  })
}

// 删除互动平台消息
export function delVitimMessage(id) {
  return request({
    url: '/secondVitim/vitimMessage/' + id,
    method: 'delete'
  })
}
